package org.springblade.application.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import org.springblade.application.command.ApplicationManagementPageCommand;
import org.springblade.application.command.TargetAddressPageCommand;
import org.springblade.applicationapi.entity.ApplicationManagementEntity;
import org.springblade.applicationapi.entity.TargetAddressEntity;
import org.springblade.applicationapi.vo.ApplicationManagementVO;
import org.springblade.applicationapi.vo.TargetAddressVO;
import org.springblade.core.mp.base.BaseService;

import java.util.List;
/**
 * @author wzy
 */
public interface IApplicationManagementService extends BaseService<ApplicationManagementEntity> {

	/**
	 * 分页
	 * @param pageCommand
	 * @param page
	 * @return
	 */
	IPage<ApplicationManagementVO> managementPage(ApplicationManagementPageCommand pageCommand, IPage<ApplicationManagementVO> page);


	/**
	 * 删除
	 * @param ids
	 * @return
	 */
	boolean removeByid(List<Long> ids);

	/**
	 * 修改
	 * @param entity
	 * @return
	 */
	boolean edit(ApplicationManagementEntity entity);


	/**
	 * 新增权限
	 * @param entity
	 * @return
	 */
    boolean addPermissions(ApplicationManagementEntity entity);
}
